package com.polaris.live.viewmodel

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.common.network.requestLoading
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.actService
import com.polaris.live.resp.back_resp.ActCenterResp

/**
 * ActivityCenterViewModel
 *
 * @author Created by 半仙 on 2024/7/29/029 15:28
 */
class ActCenterViewModel : BaseViewModel() {

    val mActCenterLiveData = MutableLiveData<ResultState<ActCenterResp>>()

    fun getActCenter() {
        requestLoading({ actService.getAcCenter() }, mActCenterLiveData)
    }
}